package com.zbkj.crmeb.store.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 用户账户明细表
 * </p>
 *
 * @author cyz
 * @since 2021-14-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_store_account_info")
@ApiModel(value="StoreAccountInfo", description="用户账户明细表")
public class StoreAccountInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "账户明细ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单号")
    private String orderId;

    @ApiModelProperty(value = "第三方订单号")
    private String outOrderId;

    @ApiModelProperty(value = "用户id")
    private Integer uid;

    @ApiModelProperty(value = "用户姓名")
    private String realName;

    @ApiModelProperty(value = "交易类型(1消费 2充值 3退款 4提现)")
    private Integer tradeType;

    @ApiModelProperty(value = "交易类型(1退货退款 2补偿性退款)")
    private Integer tradeSupType;

    @ApiModelProperty(value = "交易金额")
    private BigDecimal tradePrice;

    @ApiModelProperty(value = "手续费")
    private BigDecimal brokerage;

    @ApiModelProperty(value = "交易前用户余额")
    private BigDecimal nowMoney;

    @ApiModelProperty(value = "支付方式")
    private String payType;

    @ApiModelProperty(value = "状态(1已完成 0申请中)")
    private Integer status;

    @ApiModelProperty(value = "是否与余额有关(1是 0否)")
    private Integer isAccount;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "操作人id")
    private Integer operateId;

    @ApiModelProperty(value = "交易类型名称")
    @TableField(exist = false)
    private String tradeTypeName;
}
